﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.Common;
using Sinacor.Infra.UI.Common;

using Sinacor.UI.Bovespa.Ordens.Communication.Bovespa.Cliente.Cliente;
using System.ComponentModel;

namespace Sinacor.UI.Bovespa.Ordens.Communication.Translator
{
    class TranslatorContasCorrente  : 
BaseTranslator<Model.ContasCorrente, 
ContaCorrenteResponse, 
ModelCollection<Model.ContasCorrente>,
List<ContaCorrenteResponse>>
{
    public override Model.ContasCorrente Translate(ContaCorrenteResponse from)
{
    Model.ContasCorrente to = new Model.ContasCorrente();
    if (from != null)
    {
        to.Disponivel = from.Disponivel;
        to.Projetado = from.Projetado;
        to.NegociosDia = from.NegociosDia;
        to.isContaInvestimento = from.isContaInvestimento;
    }
    return to;
}
}
}